﻿using System;
using System.Collections.Generic;
using System.Text;
using LucasCode.Tools;
using System.IO;
using ESLReminder.Modules;

namespace ESLReminder.Games
{
    public class GameHalfLife2 : GameModule
    {
        public GameHalfLife2()
            : base(new PluginInfo("Half-Life 2 & Mods",
             new Version(1, 0),
             "©2009 Lucas Romero",
             "http://code.google.com/p/quicktools/"))
        {

        }
        public override string ProcessName
        {
            get { return "hl2"; }
        }
        protected override bool isGameInternal(System.Diagnostics.Process proc)
        {
            return proc.ProcessName == ProcessName;
        }
        public override void ProcessStarted(System.Diagnostics.Process proc)
        {
            base.ProcessStarted(proc);
            m_Reminder.CurrentArchive.Modname = GameInteropModule.getModFromDir(Path.GetDirectoryName(proc.MainModule.FileName));
        }
    }
}
